<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <button id="myButton">内存泄漏</button>
</body>
<script>
    const button = document.getElementById('myButton');
    button.addEventListener('click', () => {
        console.log("点击了按钮");
    })
</script>

</html>